package com.unience.aws.monitor.model;

import java.util.List;

import com.unience.aws.monitor.SshProccess;
import com.xerox.amazonws.ec2.GroupDescription;

public class MonitorEc2Instance {
	
	com.xerox.amazonws.ec2.ReservationDescription.Instance instance;

	MonitorInstanceInfo monitorInfo;
	
	String ip;
	
	List<String> groups;
	
	String keyDir;
	
	SshProccess sshProcess;
	
	String userData;
	
	public MonitorEc2Instance(String keyDir){
		this.keyDir = keyDir;
		monitorInfo = new MonitorInstanceInfo();
		sshProcess = new SshProccess(this);
		
		sshProcess.start();
	}
	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public MonitorInstanceInfo getMonitorInfo() {
		return monitorInfo;
	}

	public void setMonitorInfo(MonitorInstanceInfo monitorInfo) {
		this.monitorInfo = monitorInfo;
	}

	public com.xerox.amazonws.ec2.ReservationDescription.Instance getInstance() {
		return instance;
	}

	public void setInstance(
			com.xerox.amazonws.ec2.ReservationDescription.Instance instance) {
		this.instance = instance;
	}
	public List<String> getGroups() {
		return groups;
	}
	public void setGroups(List<String> groups) {
		this.groups = groups;
	}
	public String getKeyDir() {
		return keyDir;
	}
	public void setKeyDir(String keyDir) {
		this.keyDir = keyDir;
	}
	public String getUserData() {
		if (userData == null)
			return "";
		return userData;
	}
	public void setUserData(String userData) {
		this.userData = userData;
	}
	

}
